import request from '@/utils/request'

// 查询请假列表列表
export function listLeave(query) {
  return request({
    url: '/leave/apply/list',
    method: 'get',
    params: query
  })
}

// 批准请假信息
export function ratifyLeave(data) {
    return request({
      url: '/leave/ratify',
      method: 'put',
      data: data
    })
}

// 删除请假信息（逻辑删除）
export function delLeave(userId) {
    return request({
      url: '/leave/del/' + userId,
      method: 'delete'
    })
}

